using System;

namespace Exercise.Api.Entity
{
    public class UserRoles:BaseEntity
    {
        public int UserId{get;set;}

        public int RoleId{get;set;}

        //用虚方法建立表关系,相当于重写关联表的Id连接
        public virtual Users Users{get;set;}
        public virtual Roles Role{get;set;}
    }
}